#include "analysispallet.hpp"

AnalysisPallet::AnalysisPallet(){
    Glib::RefPtr<Gnome::Glade::Xml> Widgetstree = Gnome::Glade::Xml::create("interface5.glade");

    Widgetstree->get_widget("window", window);
    Widgetstree->get_widget("spinbuttonsamplex", sample_x);
    Widgetstree->get_widget("spinbuttonsampley", sample_y);

    sample_x->signal_value_changed().connect(sigc::mem_fun(*this, &AnalysisPallet::changeparams));
    sample_y->signal_value_changed().connect(sigc::mem_fun(*this, &AnalysisPallet::changeparams));

    samplesizex=3;
    samplesizey=3;

    window->show_all();
}


void AnalysisPallet::changeparams(){
    samplesizex=sample_x->get_value_as_int();
    samplesizey=sample_y->get_value_as_int();
}

Gtk::Window* AnalysisPallet::getWindow(){
    return window;
}
